<template>
	<div>
		<el-dialog title="查看详情" width="800px" @open="open" class="icon-dialog" :visible.sync="show" :before-close="closeForm" append-to-body>
			<table class="table table-bordered" align="center" width="100%" style="word-break:break-all; margin-bottom:50px;  font-size:13px;">
				<tbody>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_id')}}：</td>
						<td>
							{{form.id}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fnumber')}}：</td>
						<td>
							{{form.fnumber}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fname')}}：</td>
						<td>
							{{form.fname}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fvs')}}：</td>
						<td>
							{{form.fvs}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fvcom')}}：</td>
						<td>
							{{form.fvcom}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fcreateuser')}}：</td>
						<td>
							{{form.fcreateuser}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fcreatedate')}}：</td>
						<td>
							{{form.fcreatedate}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fupdateuser')}}：</td>
						<td>
							{{form.fupdateuser}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fupdatedate')}}：</td>
						<td>
							{{form.fupdatedate}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_faudituser')}}：</td>
						<td>
							{{form.faudituser}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fauditdate')}}：</td>
						<td>
							{{form.fauditdate}}
						</td>
				 </tr>
				<tr>
						<td class="title" width="100">{{$t('field.Testwave_fpicture')}}：</td>
						<td>
						<div v-if="form.fpicture_table && form.fpicture_table.indexOf('[{') != -1" class="demo-image__preview">
							<el-image style="margin-right:5px" v-for="(item,i) in JSON.parse(form.fpicture_table)"  class="table_list_pic" :src="item.url" :key="i"  :preview-src-list="[item.url]"></el-image>
						</div>
						</td>
				</tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fstatus')}}：</td>
						<td>
							{{form.fstatus}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_ftype')}}：</td>
						<td>
							{{form.ftype}}
						</td>
				 </tr>
				 <tr>
						<td class="title" width="100">{{$t('field.Testwave_fnote')}}：</td>
						<td>
							{{form.fnote}}
						</td>
				 </tr>
				</tbody>
			</table>
		</el-dialog>
	</div>
</template>
<script>
import { detail  } from '@/api/app/testwave'
export default {
	name:'testwavedetail',
	props: {
		show: {
			type: Boolean,
			default: true
		},
		size: {
			type: String,
			default: 'mini'
		},
		info: {
			type: Object,
		},
	},
	data() {
		return {
			form:{
			},
		}
	},
	watch:{
		show(val){
			if(val){
			}
		}
	},
	methods: {
		open(){
			detail(this.info).then(res => {
				this.form = res.data
			})
		},
		closeForm(){
			this.$emit('update:show', false)
		}
	}
}
</script>
<style  lang="scss">
@import '@/assets/scss/common.scss'
</style>
